<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>出库表单查询</title>

    <link rel="stylesheet" href="./css/self.css">
</head>


<body>
    <div class="sidebar">

        <ol class="sidebar-box">
            <li>
                <h1 style="color: aqua;">test</h1>
            </li>
            <li class=""><img src="" alt="" class="siderbar-img"><a href="./index.html" class="sidebar-text">首页</a></li>
            <li class=""><img src="" alt="" class="siderbar-img"><a href="./warehouse-query.html" class="sidebar-text">物资查询</a></li>
            <li class=""><img src="" alt="" class="siderbar-img"><a href="./warehouse-change.html" class="sidebar-text">物资更改</a></li>
            <li class=""><img src="" alt="" class="siderbar-img"><a href="./warehouse-add.html" class="sidebar-text">入库操作</a></li>
            <li class=""><img src="" alt="" class="siderbar-img"><a href="./warehouse-out.html" class="sidebar-text">出库操作</a></li>
            <li class=""><img src="" alt="" class="siderbar-img"><a href="./warehouse-queryadd.html" class="sidebar-text">入库表单查询</a></li>
            <li class="sidebar-now"><img src="" alt="" class="siderbar-img"><a href="./warehouse-queryout.html" class=" sidebar-text ">出库表单查询</a></li>
        </ol>

    </div>
    <div class="head-box">
        <h1>欢迎来到仓库管理系统</h1>
    </div>
    <div class="main-box">
        <h1 style="text-align: center;font-size: 50px;color: cornflowerblue;">你好，超级管理员</h1>
        <div style="height: auto;margin: 50px;border: 1px solid white;background-color: rgba(255, 255, 255, 0.493);">
            <h1>出库表单查询</h1>
            <div class="message" style="display: flex;align-items: center;">
            </div>
            <div id="output">

            </div>

        </div>
</body>
<script type="text/javascript" src="./node_modules/jquery/dist/jquery.js" charset="UTF-8"></script>
<script>
    var input_warehouseid = "warehouseoutput";
    url0 = "http://localhost:80/index.php/Mysql/mysql_get_all/input_table_name/" + input_warehouseid
    $.ajax({
        url: url0,

        async: pageYOffset,

        contentType: "application/x-www-form-urlencoded",

        dataType: "json",

        success: function(data) {
            data_np = Object.values(data);
            var output = document.getElementById('output');
            var value_np_out = "";
            value_np_out += "<table id='output_table'>" + "<thead>" + "<tr>" + "<th>ID</th><th>商品名称</th><th>商品种类</th><th>商品数量</th><th>商品单价</th><th>商品备注</th>" + "</tr>" + "</thead>" + "<tbody > "
            for (i1 = 0; i1 < data_np.length; i1++) {
                var value_np = Object.values(data_np[i1])
                console.log(value_np);
                value_np_out += "<tr>"
                for (i2 = 0; i2 < value_np.length; i2++) {
                    value_np_out += "<td>" + value_np[i2] + "</td>";
                }
                value_np_out += "</tr>"
                console.log(value_np_out);
            }
            value_np_out += "</tbody><table>"
            output.innerHTML = value_np_out;
        },
        error: function(err) {
            alert("请求失败");
        },
        complete: function(e) {}
    })
</script>

</html>